package com.g4.shoppingback.service.impl;

import com.g4.shoppingback.mapper.DdCategorysInfoMapper;
import com.g4.shoppingback.pojo.DdCategorysInfo;
import com.g4.shoppingback.service.IDdCategorysInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Slf4j
@Cacheable(value = "true")
public class DdCategorysInfoServiceImpl implements IDdCategorysInfoService {

    @Autowired
    private DdCategorysInfoMapper ddCategorysInfoMapper;


    //用于下拉框的商品类型显示
    @Override
    public List<DdCategorysInfo> selectById() {

        List<DdCategorysInfo> list  = ddCategorysInfoMapper.selectById();
        return list;
    }
}
